import java.util.Scanner;

// HJ72 百钱买百鸡问题
public class HJ72 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int num = sc.nextInt();
            for (int i = 0; i <= 20; i++) {
                for (int j = 0; j <= 100; j++) {
                    int b = 100 - i - j;
                    if (j % 3 == 0 && b > 0) {
                        int count = 5 * i + 3 * b + j / 3;
                        if (count == 100) {
                            System.out.println(i + " " + b + " " + j);
                        }
                    }
                }
            }
        }
    }
}
